package com.rin.design_pattern.factory;

import com.rin.design_pattern.common.shape.Shape;
import com.rin.design_pattern.common.shape.ShapeType;

/**
 * @author RinMi
 * @since 2023/5/25
 */
public class FactoryDemo {

    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();
        Shape shape = shapeFactory.getShape(ShapeType.SQUARE);
        shape.draw();
    }

}
